
// todolist的仓库
export default {
    namespaced:true,
    state:{
        todoList:[
            {
                desc:"写vue代码",
                isFinished:false
            },
            {
                desc:"写js代码",
                isFinished:false
            }
        ]
    },
    mutations:{
        mAddTodo(state,payload){
            state.todoList.push(payload.data);
        }
    }
}